﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using IDesign.System.Collections.Transactional;

// using Juval Lowy's Volatile Resource Manager implementation... http://msdn2.microsoft.com/en-us/magazine/cc163688.aspx

namespace ExternalActivities
{
    public class SomeTransactionalService
    {
        private TransactionalList<decimal> _list = new TransactionalList<decimal>();

        public SomeTransactionalService()
        {
        }

        public void Add( decimal d )
        {
            _list.Add( d );
        }

        public decimal Sum
        {
            get { return _list.Sum(); }
        }
    }
}
